package com.wertop.viid.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wertop.viid.dao.UserDao;
import com.wertop.viid.entity.UserEntity;
import com.wertop.viid.service.UserService;
import org.springframework.stereotype.Service;

/**
 * @Description UserServiceImpl
 * @Author yempty
 * @Date 2020/6/2 13:15
 */
@Service("userService")
public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService {

    @Override
    public UserEntity queryByName(String name) {
        return this.getOne(new QueryWrapper<UserEntity>().eq("username", name));
    }
}
